import request from '@/utils/request';

// 根据id查询
export function queryById(id) {
	return request({
		url: '/admin/modules/resource/extendData/queryById/' + id,
		method: 'get',
	});
}

// 查询扩展数据列表
export function list(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/resource/extendData/list',
		method: 'get',
		params: data,
	});
}

// 根据ids删除扩展数据
export function remove(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/resource/extendData/delete/' + ids,
		method: 'delete',
	});
}

// 批量下载样包
export function download(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/resource/extendData/download/' + ids,
		method: 'get',
		responseType: 'blob',
	});
}
